import { createWebHistory, createRouter } from "vue-router";
const routes = [
  { path: "/", redirect: "/home" },
  {
    path: "/home",
    component: () => import("@/view/home/home.vue"),
  },
  {
    path: "/login",
    component: () => import("@/view/Login.vue"),
  },
];
const router = createRouter({
  history: createWebHistory(),
  routes,
});
export default router;
